package cn.net.cfss.fgbp.provider.console.dao;

import cn.net.cfss.fgbp.api.console.dto.SysUserDto;
import cn.net.cfss.fgbp.api.console.vo.SysUserVo;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface SysUserDtoMapper extends Mapper<SysUserDto> {

    /**
     * 批量逻辑删除用户
     * 
     * @param userIds
     * @return
     */
    int deleteBatchByLogic(List<Long> userIds);

    /**
     * 根据条件查询列表
     * 
     * @param sysUserVo
     * @return
     */
    List<SysUserVo> queryList(SysUserVo sysUserVo);

    /**
     * 根据用户ID查询
     *
     * @param userId
     * @return
     */
    SysUserVo getByUserId(Long userId);

    /**
     * 校验唯一性
     * @param username
     * @return
     */
    int check(String username);

    List<Long> queryUserRole(Long userId);

    List<SysUserDto> uniqueUser(SysUserVo sysUserVo);

}